package com.javaapi.refactor;


import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import junit.framework.TestCase;

public class MovieTest extends TestCase {

	@Before
	protected void setUp() throws Exception {
		super.setUp();
	}

	@After
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	@Test
	public final void test() {
		fail("Not yet implemented"); // TODO
	}
	
	  public void testStatement() {
	        String S = "Rental Record for ZhangSan/n"
	        + "/taaa/t2.0/n"
	        + "/tbbb/t3.0/n"
	        + "/tccc/t1.5/n"
	        + "Amount owed is 6.5/n"
	        + "You earned 3 frequent renter points";
	        
	        Customer customer = new Customer("ZhangSan");
	        
//	        customer.addRental(new Rental(new Movie("aaa",Movie.REGULAR),1));
//	        customer.addRental(new Rental(new Movie("bbb",Movie.NEW_RELEASE),1));
//	        customer.addRental(new Rental(new Movie("ccc",Movie.CHILDRENS),1));
//	        
	        String S1 = customer.statement();
	                
	        assertTrue(S.equals(S1));
	        
	        //System.out.println(S);        
	        //System.out.println(S1);        
	    } 
	

}
